$simple-menu: '#{$tonyname}-simple-menu';

.#{$simple-menu} {
  &-sub-title {
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--t-base);
  }

  &-tag {
    position: absolute;
    top: calc(50% - 8px);
    right: 32px;
    display: inline-block;
    padding: 2px 4px;
    margin-right: 4px;
    font-size: 12px;
    line-height: 14px;
    color: #fff;
    border-radius: 2px;

    &--dot {
      top: calc(50% - 3px);
      width: 6px;
      height: 6px;
      padding: 0;
      font-size: 0;
      border-radius: 50%;
    }

    &--collapse {
      top: 6px;
      right: 2px;
    }

    &--primary {
      background-color: var(--primary-color);
    }

    &--error {
      background-color: var(--error-color);
    }

    &--success {
      background-color: var(--success-color);
    }

    &--warn {
      background-color: var(--warning-color);
    }
  }
}
